<div class="row" ng-submit="createProject()">
	<div class="col-sm-8">
		<div class="page-header">
			<h2>创建待测项目</h2>
		</div>
		<form name="projectOption">
			<div class="row">
				<div class="form-group col-sm-8">
					<label>项目名称：</label>
					<input class="form-control"
						name="name"
						required ng-maxlength="255"
						id="project-new-name"
						ng-model="project.name">
					<p id="project-name-rule" class="help-block"
						ng-messages="projectOption.name.$error">
						<span ng-message="required">项目名不为空</span>
						<span ng-message="maxlength">不超过255个字符</span>
					</p>
				</div>
				<div class="form-group col-sm-4">
					<label>起始版本：</label>
					<input class="form-control"
						name="version"
						required ng-pattern="/^\d{1,2}\.\d{1,2}\.\d{1,2}$/"
						id="project-new-version"
						ng-model="project.version">
					<p id="project-version-rule" class="help-block"
						ng-messages="projectOption.version.$error">
						<span ng-message="required">起始版本不能为空</span>
						<span ng-message="pattern">非法语义版本格式</span>
					</p>
				</div>
			</div>
			<div class="form-group">
				<label>描述：</label>
				<textarea class="form-control"
					id="project-new-comment"
					style="height:8em;resize:none"
					ng-model="project.comment"></textarea>
			</div>
		</form>
		<button class="btn btn-primary"
			id="project-create-button"
			ng-disabled="!projectOption.$valid"
			ng-click="createProject()">创建</button>
	</div>
	<div class="col-sm-3 col-sm-offset-1 hidden-xs">
	</div>
</div>
